package jsu.xxy.coffee3.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import jsu.xxy.coffee3.domain.RegisterNoId;
import jsu.xxy.coffee3.domain.Staffs;

import java.util.List;

/**
* @author 张从轩
* @description 针对表【staffs】的数据库操作Service
* @createDate 2023-06-03 04:07:54
*/
public interface StaffsService extends IService<Staffs> {

    Boolean login(String phone, String password);

    Boolean loginManage(String phone, String password);
    Boolean sign(RegisterNoId registerNoId);

    IPage<Staffs> getAll(Integer pageNo, Integer pageSize);

    IPage<Staffs> selectByName(String name, Integer pageNo, Integer pageSize);

    IPage<Staffs> selectByPhone(String phone, Integer pageNo, Integer pageSize);

    IPage<Staffs> selectById(int id, Integer pageNo, Integer pageSize);

    IPage<Staffs> selectByStatus(String status, Integer pageNo, Integer pageSize);

    Boolean change(Staffs staffs);


}
